-- GENERATED SPELL FOR [Seasoned Magister] --


function spell0_22863(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22863', 3000, 1)
end

function Sorts_22863(pUnit, Event)
local choix_sorts_22863 = math.random(0, 0)
if choix_sorts_22863 == 0 then
pUnit:RegisterEvent('spell0_22863', 1, 1)
end
end

function mob22863_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22863', math.random(1500, 3000), 1)
end

function mob22863_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22863_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22863_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22863, 1, 'mob22863_Action')
RegisterUnitEvent(22863, 2, 'mob22863_Leave')
RegisterUnitEvent(22863, 3, 'mob22863_Kill')
RegisterUnitEvent(22863, 4, 'mob22863_Die')
